package com.example.howard.xiao7music.ui.fragment;


import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;

import com.example.howard.xiao7music.R;
import com.example.howard.xiao7music.ui.Activity.LocalActivity.LocalSongActivity;

/**
 * Created by Howard on 2016/9/28.
 */
public class LocalMainFragment extends Fragment {
    private RelativeLayout localsong;
    private RelativeLayout recentlysong;


    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.local_main_fragment, null);
        localsong= (RelativeLayout) view.findViewById(R.id.all_music_view);
        recentlysong= (RelativeLayout) view.findViewById(R.id.recently_music_view);

        localsong.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent =new Intent(getActivity(),LocalSongActivity.class);
                startActivity(intent);
            }
        });
        return view;
    }


}
